package com.bbs.server;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.bbs.dao.LoveMapper;
import com.bbs.model.Love;


@Service
public class LoveService {

	@Resource
	private LoveMapper loveMapper;
	
    public void add(Love love){
    	loveMapper.add(love);
    }
	 
	public void update(Love love){
		loveMapper.update(love);
	}
	
	public void delete(Love love){
		loveMapper.delete(love);
	}
	
	public List<Love> getLoveList(){
		return loveMapper.getLoveList();
	}
	
	public List<Love> fenye(Map<String,Object> data){
		return loveMapper.fenye(data);
	}
	
	public List<Love> chazhao(Map<String,Object> data){
		return loveMapper.chazhao(data);
	}
	

}
